div.navbar.navbar-inverse.navbar-fixed-top
	div.container
		div.collapse.navbar-collapse.bs-navbar-collapse
			ul.nav.navbar-nav
				li.active
					a(href="/") 首页
				li
					a(href="/movies") 微电影
	.navbar.navbar-default.navbar-fixed-bottom
		.container
			.navbar-header
				a.navbar-brand(href="/") 电影迷
			p.navbar-text.navbar-right
				button.btn.btn-default(type="button" style="margin-right:10px;" data-toggle="modal" data-target="#regModal") 注册
				button.btn.btn-success(type="button" data-toggle="modal" data-target="#logModal") 登录

	#regModal.modal.fade(role="dialog" aria-hidden="true")
		.modal-content
			form(name="reg-form" method="post" action="/users/reg")
				.modal-header 用户注册
				.modal-body
					.form-group
						label(for="username") 用户名
						input#username.form-control(name="user[username]" type="text" placeholder="请添写用户名" onblur="check_username(this)")
					.form-group
						label(for="password") 密码
						input#password.form-control(name="user[password]" type="password" placeholder="请添写密码")
				.modal-footer
					button.btn.btn-default(type="button" data-dismiss="modal")关闭
					button.btn.btn-success(type="submit")注册
	#logModal.modal.fade(role="dialog" aria-hidden="true")
		.modal-content
			form(id="log_form", name="log_form", method="post", action="")
				.modal-header 用户登录
				.modal-body
					.form-group
						label(for="username") 用户名
						input#username.form-control(name="username" type="text" placeholder="请添写用户名")
					.form-group
						label(for="password") 密码
						input#password.form-control(name="password" type="password" placeholder="请添写密码")
				.modal-footer
					button.btn.btn-default(type="button" data-dismiss="modal")关闭
					button.btn.btn-success(type="submit")登录
